<?php
namespace Pinenut\Response;

class LiteException {
	
		protected $message;
		protected $string;
		protected $code;
		protected $file;
		protected $line;
		protected $trace;
		protected $previous;
	
	
		final private function __clone () {}
	
		/**
		 * @param message[optional]
		 * @param code[optional]
		 * @param previous[optional]
		 */
		public function __construct ($message = null, $code = null, $previous = null) {
			$this->message = $message;
			$this->code = $code;
			$this->previous = $previous;
		}
	
		public function getMessage () {
			return $this->message;
		}
	
		public function getCode () {
			return $this->code;
		}
	
		public function setFile ($file) {
			return $this->file = $file;
		}
		public function getFile () {
			return $this->file;
		}

		public function setLine ($line) {
			return $this->line = $line;
		}
		public function getLine () {
			return $this->line;
		}
	
		public function setTrace ($trace) {
			return $this->trace = $trace;
		}
		public function getTrace () {
			return $this->trace;
		}
	
		public function getPrevious () {
			return $this->previous;
		}

		public function getTraceAsString () {
			return $this->message;
		}
		public function setString($string) {
			return $this->string = $string;
		}	
		public function __toString () {
			return $this->string;
		}

}